# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=xfce4-mailwatch-plugin
pkgver=1.2.0
pkgrel=1
pkgdesc="a multi-protocol, multi-mailbox mail watcher"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-mailwatch-plugin"
arch="all !mips !mips64" # blocked by libxfce4ui-dev
license="GPL-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev intltool libx11-dev glib-dev gtk+2.0-dev
	xfce4-panel-dev libxfce4ui-dev exo-dev libgcrypt-dev gnutls-dev"
install=""
subpackages="$pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-mailwatch-plugin/1.2/xfce4-mailwatch-plugin-$pkgver.tar.bz2"
builddir="$srcdir/xfce4-mailwatch-plugin-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_sub || return 1
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-ssl \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="6f5128b2341ab275427e02b1ef063cb2fdcf4027f5c47cfc0ed26086462eb0e9f7353441ea1b9380b91a892414934203b781445f604d67200786e3dd85183a83  xfce4-mailwatch-plugin-1.2.0.tar.bz2"
